import request from '@/utils/request'

export function getSubscribeList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/strategy/subscribe/getList',
    method: 'post',
    data: query
  })
}   

export function subscribeCannel(query) {
    if(query != undefined){
      query = JSON.parse(JSON.stringify(query))
    }
    return request({
      url: '/strategy/subscribe/cannel',
      method: 'post',
      data: query
    })
  }   
  
export function subscribeTradeSubmit(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/strategy/subscribe/trade',
    method: 'post',
    data: query
  })
}   
export function subscribeSave(query) {
    if(query != undefined){
      query = JSON.parse(JSON.stringify(query))
    }
    return request({
      url: '/strategy/subscribe/save',
      method: 'post',
      data: query
    })
  }   
  
export function subscribeDelete(query) {
    if(query != undefined){
      query = JSON.parse(JSON.stringify(query))
    }
    return request({
      url: '/strategy/subscribe/delete',
      method: 'post',
      data: query
    })
  }   